package com.ncr.travel.appmgr.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.logical.shared.HasSelectionHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.TabLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class MainWindowViewImpl<T> extends Composite implements MainWindowView<T> {

	private MainWindowViewUiBinder uiBinder = GWT.create(MainWindowViewUiBinder.class);

	@UiTemplate("MainWindowView.ui.xml")
	interface MainWindowViewUiBinder extends UiBinder<Widget, MainWindowViewImpl> {
	}

	@UiField
	TabLayoutPanel productsTabLayoutPanel;

	@Inject
	public MainWindowViewImpl() {
		System.out.println("Constructing MainWindowViewImpl");
		initWidget(uiBinder.createAndBindUi(this));
	}

	public HasSelectionHandlers<Integer> getProductsTabPanel() {
		return productsTabLayoutPanel;
	}

}
